/**
 * @Copyright (c) 2017, 家校通信息科技有限公司 All Rights Reserved.
 */
package com.school.teaching.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.school.teaching.entity.User;
import com.school.teaching.service.IUserService;

/**
 * @Description TODO
 * @Author hesheng
 * @Date 2017年3月14日 下午6:45:20
 */
@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	private IUserService userService;
	
	@RequestMapping(value = "/{account}", method = RequestMethod.GET)
	public User getUserByAccount(@PathVariable String account) {
		return userService.getByAccount(account);
	}
}
